From 5e31390ab4d5d6d714c629ba114145814cbf3a28 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 21 Jun 2007 11:41:24 +0000 Subject: [PATCH] (bug 10325) Fix regression in form action on Special:Listusers --- RELEASE-NOTES | 1 + includes/SpecialListusers.php | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index eea6e4afbe..d739a0094b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -188,6 +188,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Avoid PHP notice errors when doing HTTP proxy purges for an empty list * As intended, *skip* the HTTP proxy purges when doing HTCP purges * (bug 9696) Fix handling of brace transformations in "pagemovedtext" +* (bug 10325) Fix regression in form action on Special:Listusers == API changes since 1.10 == diff --git a/includes/SpecialListusers.php b/includes/SpecialListusers.php index 3ff087b490..293d10d6cb 100644 --- a/includes/SpecialListusers.php +++ b/includes/SpecialListusers.php @@ -115,14 +115,17 @@ class UsersPager extends AlphabeticPager { } function getPageHeader( ) { - global $wgRequest; + global $wgScript, $wgRequest; $self = $this->getTitle(); # Form tag - $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $self->getLocalUrl() ) ) . + $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . '
' . Xml::element( 'legend', array(), wfMsg( 'listusers' ) ); + # Title + $out .= Xml::hidden( 'title', $self->getPrefixedUrl() ); + # Username field $out .= Xml::label( wfMsg( 'listusersfrom' ), 'offset' ) . ' ' . Xml::input( 'username', 20, $this->requestedUser, array( 'id' => 'offset' ) ) . ' '; -- 2.20.1